package org.infosys.basic.service;

import org.infosys.basic.query.BaseQuery;
import org.infosys.basic.utils.PageList;

import java.util.List;

public interface IBaseService<T> {

    List<T> loadAll();

    T loadById(Long id);

    void save(T t);

    void update(T t);

    void remove(Long id);

    PageList<T> loadQuery(BaseQuery baseQuery);

    void patchDel(Long[] ids);
}
